package com.wentao.mall.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CreateOrderRequest {
    @NotBlank
    @Length(min = 1,max = 10)
    private String receiverName;
    @NotBlank
    private String receiverAddress;
    @NotBlank
    @Length(min = 11,max=11)
    private String receiverMobile;
}
